import React from 'react';
import { View } from 'react-native';
import PropTypes from 'prop-types';
import List from './components/List';

const PlanView = ({ navigation, planList, getPlanList }) => (
    <View>
        <List navigation={navigation} planList={planList} getPlanList={getPlanList} />
    </View>
);
PlanView.defaultProps = {
    planList: [],
    getPlanList: () => {},
};
PlanView.propTypes = {
    planList: PropTypes.arrayOf(PropTypes.any),
    getPlanList: PropTypes.func,
};
export default PlanView;
